class CreateCulturalHeritageCulturalHeritagePreRegisters < ActiveRecord::Migration
  def self.up
    create_table :cultural_heritage_cultural_heritage_pre_registers do |t|
      t.string :preRegisterRegistrationCode
      t.string :name
      t.string :description
      t.string :foundInId
      t.float :height
      t.float :long
      t.float :width
      t.float :weight
      t.integer :state
      t.integer :group
      t.integer :subGroup
      t.integer :tipology
      t.integer :typeCulturalInstitution
      t.integer :culturalInstitution
      t.integer :period
      t.integer :culture
      t.integer :style
      t.integer :owner
      t.integer :author
      t.integer :conservationalState
      t.integer :integrityState
      t.integer :shape
      t.integer :technique
      t.integer :topic
      t.integer :deleted

      t.timestamps
    end
  end

  def self.down
    drop_table :cultural_heritage_cultural_heritage_pre_registers
  end
end
